import http from "../common/http.js";

export function config(data, needLoading) {
  return http.GET("/invoice/saas-user-conf-list", data, needLoading);
}

export function save(data, needLoading) {
  return http.POSTJSON("/invoice/saas-user-conf-save", data, needLoading);
}

export function apply(data, needLoading) {
  return http.POSTJSON("/invoice/user-invoice-apply", data, needLoading);
}

export function list(data, needLoading) {
  return http.GET("/invoice/user-invoice-list", data, needLoading);
}

export function invoiceConf(data, needLoading) {
  return http.GET("/invoice/invoice-conf", data, needLoading);
}

export function orderSave(data, needLoading) {
  return http.POSTJSON("/invoice/user-invoice-save", data, needLoading);
}

export function searchInvoiceNo(data, needLoading) {
  return http.GET("/invoice/search-invoice-no", data, needLoading);
}
